<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>客户订购信息查询 - 物流管理系统</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<style media="all" type="text/css">
		@import "../style/all.css";
		@import "../../style/jquery/ui.all.css";
	</style>
	<script type="text/javascript" src="../../script/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="../../script/jquery-ui-personalized-1.6rc6.min.js"></script>
	<script type="text/javascript" src="../../script/date.js"></script>
	<script type="text/javascript" src='../../script/common.js'></script>
	<script type="text/javascript">
		$(function(){
			datepicker('.date-six');
		});

		function checkCusId(){
			var customerId = document.frm2.customerId.value;
			if(customerId==null||customerId==""){
				alert("客户编号不能为空！");
				document.frm2.customerId.focus();
				return false;
			}
			window.location.href='orderformList.jsp';
		}
	</script>
</head>
<body style="background: none">
			<div class="top-bar">
				<h1>客户订购信息查询</h1>
				<div class="breadcrumbs">
					<div class="button-bar">
						<input type="button" name="Submit" value="帮助" class="button"/>
						<input type="button" name="Submit" onclick="checkCusId()" value="查询" class="button"/>
					</div>
					<a href="../../index.html" target="_top">首页</a> / <a href="../index.html" target="_top">客户服务中心</a>
				</div>
			</div>
	<form name="frm2" method="post">
		  <div class="select-bar">
			<table class="select-table">
						<tr>
							<th>订单号</th>
							<td><input type="text" name="customerId" class="text" value="LBxxxxx001"/></td>
							<th>订单状态</th>
							<td>
								<select style="width:129px">
									<option>正常</option>
									<option>缺货</option>
								</select>
							</td>
						</tr>
						<tr>
							<th>订购商品</th>
							<td><input type="text" name="textfield11" class="text"/></td>
							<th>订单生成日期</th>
							<td style="white-space:nowrap">
								<input type='text' class="date-six text" name='' readonly/>
							</td>
						</tr>
			</table>
		  </div>
	</form>
			<div class="table">
				<img src="../../style/img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
				<img src="../../style/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
				<table class="listing" cellpadding="0" cellspacing="0">
					<tr>
						<th class="first">订单号</th>
						<th>商品名称</th>
						<th>数量</th>
						<th>下单时间</th>
						<th>收货地址</th>
						<th class="last">付款人</th>
					</tr>
					<c:forEach items="${list}" var="lor">
					<tr>
						<td>${lor.orderid}</td>
						<td>${lor.proid}</td>
						<td>${lor.ordercount}</td>
						<td>${lor.orderdate}</td>
						<td>${lor.receiveadd}</td>
						<td>${lor.lcustomer.customername}</td>
					</tr>
					</c:forEach>
						
				</table>
				<div class="pager">
					共59条记录 每页<input type="text" class="text" size="2" value="10"/>条
					第1页/共5页
					<a href="#">第一页</a>
					<a href="#">上一页</a>
					<a href="#">下一页</a>
					<a href="#">最后一页</a>
					转到<input type="text" class="text" size="1" value="1"/>页
					<input type="button" class="button" onclick="" value="GO"/>
				</div>
			</div>
</body>
</html>
